package com.mes.warehouse.server;

import com.mes.common.pojo.MESResult;
import com.mes.pojo.Menu;
import com.mes.pojo.warehouse.Warehouse;

/**
 * @Author 张喆
 * @Company
 * @Description
 * @Time 2024/10/24 14:56
 */

public interface WarehouseServer {
    /**
     * 分页查询仓库信息
     * @param warehouse
     * @param pageNum
     * @param limit
     * @return
     */
    MESResult selectAll(Warehouse warehouse,Integer pageNum,Integer limit);

    /**
     * 根据Id获取仓库信息
     * @param warehouseId
     * @return
     */
    MESResult selectById(String warehouseId);

    /**
     * 删除仓库信息
     * @param warehouseId
     * @return
     */
    MESResult deleteWarehouse(String warehouseId);

    /**
     * 跟新仓库信息
     * @param warehouse
     * @return
     */
    MESResult updateWarehouse(Warehouse warehouse);

    /**
     * 添加仓库信息
     * @param warehouse
     * @return
     */
    MESResult insertWarehouse(Warehouse warehouse);
}
